﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Smile.Mvvm.Service
{
    /// <summary>Share link data.</summary>
    internal class ShareLinkData
    {
        // @Properties
        public Uri Uri
        {
            get
            {
                return _uri;
            }
            set
            {
                _uri = value;
            }
        }

        public string Title
        {
            get
            {
                return _title;
            }
            set
            {
                _title = value;
            }
        }

        public string Description
        {
            get
            {
                return _description;
            }
            set
            {
                _description = value;
            }
        }


        // @Public
        public ShareLinkData(Uri uri, string title = "", string description = "")
        {
            Uri = uri;
            Title = title;
            Description = description;
        }

        public ShareLinkData(string uriString, string title = "", string description = "") :
            this(new Uri(uriString, UriKind.Absolute), title, description)
        {
        }

        // @Private
        Uri     _uri;
        string  _title;
        string  _description;
    }
}
